package com.wangp.employee.po;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.data.annotation.Id;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.TemporalType;
import java.util.Date;

/**
 * <p>
 * 第一行简要描述.
 * </p>
 *
 * @author wangping
 * @since 2024-12-19
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@TableName("departments")
public class DevelopmentDO {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id; // 部门编号

    @Column(name = "department_name", nullable = false, length = 50)
    private String departmentName; // 部门名称

    @Column(name = "department_location", length = 100)
    private String departmentLocation; // 部门所在位置

    @Column(name = "department_manager", length = 50)
    private String departmentManager; // 部门经理姓名

    @Column(name = "create_date")
    private Date createDate; // 部门创建时间

    @Column(name = "create_by", length = 100)
    private String createBy; // 创建人

    @Column(name = "update_date")
    private Date updateDate; // 部门修改时间

    @Column(name = "update_by", length = 100)
    private String updateBy; // 修改人

    @Column(name = "department_description")
    private String departmentDescription; // 部门的详细描述信息
    @Column(name = "is_delete")
    private String isDeleted;
}
